package JAVACORE_TRAINING.OOPs.INHERISTANCE;

class Parent {
	public void p1() {
		System.out.println("Parent method");
	}	
}

public class Child extends Parent {
    public void c1()
    {
        System.out.println("Child method");
    }
    public static void main(String[] args)
    {
        Child cobj = new Child();
        cobj.c1();   //method of Child class
        cobj.p1();   //method of Parent class 
    }
}
